package com.aaa.ms.service;

import com.aaa.ms.service.impl.NewsServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

@FeignClient(name = "salesService",fallback = NewsServiceFallback.class)
public interface NewsService {

    @GetMapping("/news/queryAll")
    Map queryAll();
}
